package com.mdc.mansion.web.modules.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by mingdongc on 2017/4/8.
 */
@Component
public class SystemTask {
    private Logger LOGGER= LoggerFactory.getLogger(SystemTask.class);

    @Scheduled(cron = "0 0/10 * * * ?")
    public void tenMinutes (){
        LOGGER.info("==>>10分钟完美定时任务tenMinutes");
    }
}
